﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace PlantsVsZombies
{
    public static class MyContent
    {
        public static ContentManager content;
        public static Sprite  LoadBullet()
        {
            return new Sprite(content, @"Image\Plant\Peashooter\bullet", new Vector2(0, 0), Vector2.Zero);
        }
        public static Sprite LoadSunSmall()
        {
            Sprite kq = new Sprite(content, @"Image\Plant\Sun", new Vector2(0, 0), Vector2.Zero) {Visible = false};
            return kq;
        }
        public static Sprite LoadSunBig()
        {
            Sprite kq = new Sprite(content, @"Image\Plant\SunBig", new Vector2(0, 0), Vector2.Zero) {Visible = false};
            return kq;
        }
        public static Sprite[] LoadPeashooter()
        {
            Sprite[] peashooter = new Sprite[2];

            int nNormal = 5;
            String[] strNormal = new string[nNormal];
            for (int i = 0; i < nNormal; i++)
            {
                strNormal[i] = @"Image\Plant\Peashooter\Untitled-1_" + (i).ToString("00");
            }

            peashooter[0] = new Sprite(content, strNormal, 5, new Vector2(0, 0), Vector2.Zero);
            peashooter[0].Visible = false;

            String[] strAttack = new string[9];
            for (int i = 0; i < 9; i++)
            {
                strAttack[i] = @"Image\Plant\Peashooter\Untitled-1_" + (i + 5).ToString("00");
            }
            peashooter[1] = new Sprite(content, strAttack, 9, new Vector2(0, 0), Vector2.Zero);
            peashooter[1].Visible = false;

            return peashooter;
        }
        public static Sprite LoadVehicle(Vector2 pos)
        {
            return new Sprite(content,@"Image\Vehicle\Vehicle", pos, Vector2.Zero);
        }


    }
}
